package com.sunagy.demand.front.repository;

import com.sunagy.demand.front.dataobject.AdminAuthToken;
import com.sunagy.demand.front.dataobject.CustomerAuthToken;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * desc：#TODO fill me ！
 * author：三餘無夢生
 * date：2018/4/12
 * time：下午4:06
 */
public interface CustomerAuthTokenRepository extends JpaRepository<CustomerAuthToken,Integer>{
    CustomerAuthToken findByToken(String token);
    CustomerAuthToken findByUserid(Integer userId);
    CustomerAuthToken findByOpenidAndPlatform(String openid, String wechat);
}
